<?php

declare(strict_types=1);

namespace app\model;

use think\Model;

class NotifyRecipient extends Model
{
    public const STATUS_PENDING = 0;   // 待发送
    public const STATUS_SENT = 1;      // 已发送
    public const STATUS_READ = 2;      // 已读
    public const STATUS_FAILED = 3;    // 发送失败
    public const STATUS_CANCELLED = 4; // 已取消

    public function message()
    {
        return $this->belongsTo(NotifyMessage::class, 'message_id');
    }
}
